Added ant check on mac os

As titled, added ant check on mac os, if mac does not has ant installed, try to install it with brew.
If brew is not installed, exit the scripts with error code 1.