Moved class CopyFile to commons module.
Code refactoring.