Automatic gh-pages update script fixed