script to find OS