Fix end of remote-script.sh