Cross-platform File handling for Unix/Mac/Windows