Fixes minor issues with file copy module