BUG: Fix hook error specific Git bash/GUI using an old version of BASH.

See http://www.na-mic.org/Bug/view.php?id=3086
Fixes #3086