Use a better check to see whether procfs is mounted.