copy script was not copying the file into the correct directory