fixes #2348
Merge pull request #2349 from dotCMS/issue-2348-hardlink-filecopy-fails

fixes #2348