Make sure the tmp dir has been created