Makefile cleanup and remove need for post commit hook

The Makefile now checks .git/HEAD and .git/refs/heads/*
[#67763658]