check if os.environ has TERM before setting
Pbs executor works
script to invoke pbs