Check for /proc/self/cmdline
Instead of hardcoding /proc/self/cmdline use for linux only, do a configure-time test for it.
Specifically, this enables /proc/self/cmdline use on Cygwin.
The configure-time test is very primitive (just tests that the file exists and that it's possible to read more than one byte from it), relying on the testsuite for more extensive checks.