Return from subprocess.Popen(...).communicate() can contain the string 'Linux cooked v1' and not 'Linux "cooked" v1'. This new regex covers both cases.