get_version now uses regex instead of substrings.