use of crossplatform temp directory