Changed the -n flag of cp to -f, not equivalent, but it gets the job done.