Revert variable name
Rename variable that was same as a shell builtin
Remove unnecessary environment variable
Put environment variables ahead of local variables
Do away with constant for the URL of Homebrew installer script