Fix test by pre-creating tmp dir