fixed problems with path names and spaces on windows