fixed to specify absolute path to brew command to work well even if there is no PATH to brew.