confirm the /proc/pid/cmdline file exists before reading it