More progress on the docs build script

Now it cleans up previous builds before building again. Should prevent
old files from hanging around in gh-pages.