Less ugly way to detect port and brew paths