Fixing failing exclude tests on Linux

These would successfully pass on Windows because of the different
directory separators used.