add debugging for homebrew installer url and fix the path, update #2706