filter_readonly_variables: safe cwd, bug #469338
check-implicit-pointer-usage: safe cwd bug 469338
dohtml: safe cwd, bug #469338
dohtml: restore cwd for __helpers_die