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.