Correcting baseurl paths so that local and live config files can be used