shell script now logs properly
fixed bash script path issues; warnings now to a log file as well and include record id; misc other edge-case handling
merged