refactor for reuse, make target check majorminor only.
repl space with tabs.
Merge pull request #646 from parrt/refactor-version

Refactor RuntimeMetaData for reuse of code. Make Target check only major/minor version.