Adjust tmpdir handling to allow easy use of tmpfs