Minor changes to runmonitor.sh