The paths used for origin detection only work on a Linux host, or at least a host with /proc and /sys directories. Since this detection is enabled by default this code no longer works on other operating systems. At the very least this code should fail gracefully if run on a different OS.