[Misc] Fix test which fails if the path contains a white space