buildProduction: Fixed output directory when --canonicalurl is used.