What exactly do you mean by "doesn't work"? Does it run? Produce output? Errors? Anything at all?
It could be that something went screwy when you copied it over. The only way to know for sure is to use something like diff to compare the working and non-working versions.