fixing tests when PWD contains spaces