Remove \r? and use universal_newlines argument

Removed \r? from VERSION_RE and instead use universal_newlines=true in
subprocess.Popen