Allow tests to run on OSX with TMPDIR