So as long as the permissions are set Ok, there would seem to be no reason why that script would not run.
Got me, it needs a smarter mind than mine to suggest further avenues of investigation.
There has to be something that is preventing the execution..
I tried it on another remote system in a iBay other than the primary, no probs as long as the permissions were 0755, what are you using to upload the file with, I am using WinSCP