Simplify OS and platform detection