Redmine#1032: read /proc and /sys files specially

Attempts to fix https://cfengine.com/dev/issues/1032

With acceptance test.