remove trailing slash on path entries for mac homebrew