System#cat_file -> #read_file, make it os agnostic on local systems

System#read_file used "cat" internally which means that it didn't work on
MacOS and Windows and was also harder to test.
Refactor OsInspector

It now uses System methods instead of implementing its own stuff. That
makes it cleaner and easier to test.