rewrote latest to use brew info as brew list does not give info about non-installed brews.
added more debugging