fix detection of whitespaces in source path