Update unit tests to work on Windows

Just a simple pull request so that the unit tests will work on Windows. Use the os.TempDir() function instead of hard-coding "/tmp".