extracted OS-specific temp detection to tabfilemanager as a static
method