Resolved lockfile full path bug

Fixed: If using full path to script lock file was not being detected in
monitor causing the monitor to not work. This broke automatic
monitoring.