Add version info functions from Flycheck

Some fancies added, such as interactive calls