Fix issue with spaces in folder names.

If you have a folder name with a space in it, such as say "/home/vagrant/Folder Folder/code" it would show "/home/vagrant/Folder".