Fixed utils.version for Python 2.7 compatibility (subprocess.Popen does not work as a context manager in Python 2, but only in Python 3)