use sys.platform.startswith()

instead of using the earlier
	if sys.platform == 'linux' or ...
use
	if sys.platform.startswith('linux') or ...