make the hadoop completion script working for hadoop installed through Homebrew, also added support for newer commands