Support non-GNU mktemp (eg OSX)