Fix tempfile names for cygwin