Browserify support

Browserify didn't find the `os` module. It's used only for getting the os's line endings (with a fallback), so this simply replaces the module with an empty object when compiled using browserify.