updated expected exception from a bad module load
remove usage of ==/!= nil

Adjust all module-loading libraries to have consistent nil?/!nil? checking and
'if' style.