Avoid crash in module_common when the file cannot be moved/copy
Merge pull request #3047 from kavink/devel

Avoid crash in module_common when the file cannot be moved/copy