Switching from curl to wget for executing a remote script