Prevent unnecessary file copy for unarchive module

Suggested fix for #8115.
Checks unarchive module's 'creates' argument earlier to prevent unnecessary copying of file.