Robuster determination of "base_url" config item

Remove the basename only at the end, to avoid edge cases.
1 file changed