modify dirname to use gh-pages