Make it so it is possible to override baseurl

baseurl is a parameter that can be set but if it is overridden, it
doesn't work since srclocation is not set.