Set cdpath in one spot.
Add equality swapping
chdir by default so that tests don't run on the source checkout if it's cwd