Well ... my comment's right ... what we really want is the "compatibility" version. Bruno's comment is disgusting, why do we have to have rights on SYS to read it? Grrr ... how annoying.
Perhaps just removing the version info from query files and letting the APM tell you if the package doesn't support your db version would be simplest and sufficient in practice?
A cheap hack is to just check the "8" and the "1" and ignore the "6" or "7" ... my guess is that the compat level more or less corresponds to "8.1" :)