Remove OS gem. Use our own operating system detection

We don't need the overhead of the `OS` gem for one or two methods. It's pretty simple to detect the operating system in pure Ruby without the dependency.