fix for BatchMain (set base temp directory to /tmp)
changed to not print debug statements to stdout