create tmp directory when not exist, add skip empty key