klomp: do not fail if os doesnt allow setsid
klomp: dont use subprocess.check_output {requires python 2.7}