Use hadoop tmp directory when appropriate.