[v6.d REVIEW] Use proper failure test routine in chdir
[v6.d REVIEW] Use proper failure test routine in chdir

Orig: https://github.com/perl6/roast/commit/86f79ce19

perl6/roast,dogbert17/roast,dogbert17/roast