Adds operating system detection

Closes #73