Use -a for terminal-overrides from Daniel Hahler.
Use KERN_PROC_CWD if supported, from Tiwei Bie.