if we have a tmp dir in the trinity dir, use that instead of /tmp
now that -C can scale better, we don't need the extra shell loops
remove now pointless check
remove more no longer needed cruft