Fixed commit-msg hook name #3
Added error check for git symbolic-ref #3
Added error check for grep