Conditionally build fileInfo type based on target OS