Need to create tmp directory before using it