Monit script fixes