The list of conditions should be configurable.  I added the optional `qa` recently.

Also every environment can optionally define a `path_prefix` which overrides the `test` mode prefix.  It may be worth adding here... no sure.