fix getting version from home page with bad HTTP headers