update copy script to check if its on gh-pages branch