Add fallback java version matching when setting java version

This allows a user to provide as much of the string as
needed to show what version they want. The most recent
java version will be used if their string matches multiple
versions, and nothing will be set if nothing is matched at all.