Fix monit script when depends_on is nil