improved detection of relative paths and domains in URL::Init()