Check if process exists before autodetecting end of line based on platform. This allows to use this library in the browser.