Fix indentation
Simplify OS and platform detection