Fix for fileutils copy method