fixed problem with path having spaces