Fixing commit hook for cases when grep returns 1