(close #179) artificially set $PWD correctly in child environment