Clean up prepare for monitor function.
Add default monitor path as an argument when rewriting command.
make function to locate monitor public.
Update/delete monitor executable as needed.
remove trailing whitespace
Merge branch 'makeflow_monitor_log_fix'

Fixes a bug (reported by Neil Best) in which makeflow did not recover correctly
the log if monitoring was enabled. The problem was that the monitor was being
renamed every time the workflow ran.
Use work_queue_submit_internal at foreman side.
taskid increment after assignment.
Merge branch 'wq_foreman_taskid'

Fix bug where foreman was not using work_queue_wait_internal.