fallback on copy if move gives permission denied

This fixes a test error that I am seeing with Streawberry Perl

Move on a temp file with CLEANUP => 1 apparently gives a permission denied error on MSWin32.  Copy seems safe fallback since the file should be deleted when the process terminates.