Fixed an error with the build and changed the pre-commit hook so that it
would prevent further such.