Change script to allow to publish on github.io site or gh-pages branch