fix regular expression in gh-pages to work with old or new git