Fix issue with spaces in $HOME or $PREFIX.