Thank you for this, it is much better than before. However, I think this
is still a problem if there is a directory with two spaces in its name.
I feel like we should do what many shells do and escape the spaces (and
possibly other characters) when generating the completions.