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.
Merge pull request #18 from dmsimard/master

Make it so it is possible to override baseurl