Fixed bug when spaces are in the path