fix to create tmp dir