fix handling spaces in path

closes #3