fix null p_cwd on idleproc