[aws plugin] Changed brew cmd to properly report if awscli is installed via homebrew

As it was previously written, the `brew` command to check if `awscli` was installed would always return true, regardless of whether `awscli` was actually installed via brew. I've updated the command to properly check whether `awscli` is installed. I also cleaned up an indentation and whitespace issue (lines 13, 17-18).