I think he wondered why such tool is needed, because there already is nmap which does OS detection. Probing for http headers/ftp server banners is far from conclusive and may be proxied from other servers with different operating systems.
Anyway - your program has possibly destructive behaviour, since it overwrites files in users home directory without checking. Same goes for installer.