Small fix to move temp files instead of copy