Improves detection of OS in OsTasks

I've confirmed that the OSs in EC2 live test return sensible values