Fix createTempDir use of tmp package #1403