Minor tweaks to procfs reading code