Fix main makefile.

Fix bug in main makefile. git_post_checkout_hook has to be called early

Fix check of existing build directory in git_post_checkout_hook.

CMakeLists.txt - call git_post_checkout_hook withou params during build
Clean root directory.

Remove uneccessary files.
Put build_tree into .gitignore.