Add operating system detection