mktemp works differently on OS X