Verify /proc/modules is readable (issue #2990)

Makes sure /proc/modules is also readable before attempting to read from it.  See issue #2990.