Minor fix for baseUri detection.