use /tmp/tgrid/ for remote directory on byon test and /temp/$USER for working directory