In some versions of Python (including the one in cenbuild), sys.platform is "linux3". See https://docs.python.org/2.7/library/sys.html . However, we currently have this code: if "linux2" == sys.platform: ...
Fix now since it is causing issues for our automatic tests.
Fix looks good and it seems to work as expected.