The output of your command "
pwdx $$
" is:
300118: /usr/lib/cgi-bin