generate .rmake-make.sh and invoke it with ssh -n -tt to kill remote process when ssh client is killed