There is no need to do this switch based on the current OS, instead do it based on what the archive actually appears to be. (Tested; works.)
There is no need to do this switch based on the current OS, instead do it based on what the archive actually appears to be. (Tested; works.)