updates to check the operating system before downloading files