Ensuring gh-pages branch is cleaned correctly