fix setting.sh to run command on remote server