Adapted to newer update-gh-pages script