More accurate path appending for homebrew.