Raising errors in travis-run.sh, modified hooks