Adding changes to script to process links on gh-pages