fixing path trailing slash for homebrew