Clean up after the cwd tests

Lack of this breaks the cprofile test.  (Unless bin/test does the
chdir/abspath combination to work around this.)