ancestry.lua: make cgi regex work with all pages