change exit code according to nosetests result

reason: we want the whole script to fail if nosetests failed, so that
Jenkins knows about it, instead of getting the last exit code