Working copy of glideinWMSVersion.py from branch_v2plus.