Use system $PATH to get bash cmd path

While trying to run git-hooks on a particular system I've found that its bash cmd wasn't located in /bin/ so this patch address this issue.