Keep the file extension in the temporary copy and test that it exists (closes #7482)