Fix indention / tabs

* Convert to spaces
Introduce osver bash function