Fixing the version check regular expression