git pre-commit hooks are always run from the root

No need to find out the basedir. We don't do it for the python tests anyway.
List sh files to check like the python files
Don't accept pyflakes/pep8 not being installed, common err func
Properly catch return codes since -x is no longer used