Utils.detect_platform is no longer available, so let's use the underlying sys.platform instead. On Linux, sys.platform returns "linux2" these days, but upstreams is considering to change it "linux" in the future.