fix set_root_dir causing problems for gh-pages deployment