Chasing down file.copy issue