Fixes #6482 Check sysctl file path and catch read exceptions