Numerous additions to "brew cask doctor"

New versions, paths, environment variables, and tests.
Side effect: release version must be stored in two locations.