Fixes unit testing on Visual Studio.

tmpnam() in VS prepends backslash in the path.