made version extraction less error-prone/more future-proof, will now always check
if result of regex match is truthy and array bounds are correct before actually
accessing the version number