runtime: fix version compare logic

previous change was made a bit too fast: needed a non-capturing group in the regex