Make sure the tmp directory exists.