Add support for running in arbitrary base URLs