LIVEOAK-47: Minor bug fixes to the script module.