Fix segfault when forcing commit after a hook fails
Add requirements for build script