Check for current directory instead of death test to get original directory. A port may support filesystems but not death tests.