chinook: updated for any working dir + misc cmd_script tweaks