Fixes bug in gh-pages script.