Fixed issue with  regex matches on 1.8 version of git