Rewrite monitor command until the last moment

Now we keep separate the monitoring command from the original 'vanilla'
command, and rewrite the monitoring command just before the node is
dispatched to the batch interface.  This to allows the modification of
the monitoring command when resources are exceeded.