$TMPDIR is gone. use /tmp
merge with master for CI on osx