Fix handling when MONITOR_EXEC is unspecified