Better error handling for the external script and missing dependencies

Still need to figure out how to get this to work on openshift.