updating path detection to work with gh-pages