Path: remove path with trailing / (brew doctor objects)