Use path.resolve to normalize default temporary directory

Fixes test on temporary directory setting (on OSX, at least)