fix post-checkout hook
fix hook installer, add pre-commit hook
[test] travis