Fix definition of output variables for version parsing

Change-Id: I55c3d8a3fba12bfe2993f4cac25ad26f278edca3
Fix version checking when specific version is requested

Change-Id: Iaf0a3e809e46aefd4282a69284fd79da192ef070