Unified approach for writing temporary transactional files that enables use of a global temporary directory. Supports bcbio on AWS with a shared filesystem