spaces in host directory name will break ssh

Same as in #7713, except without ssh key