Changed torch-lua to th; using sys.fexecute since PID is not always returned with sys.execute