Allow spaces in path to VM and remove code duplication.
Merge pull request #3 from frececroka/master

Allow spaces in path to VM