sometimes io.popen fails in osx and -onethread, so this makes sure it fails gracefully and torch can still start