Add url sniffing to allow forks to see their gh-pages and still work OK on the official URL