Eradicate chtmpdir/chhomedir in favour of chdir

With extra :test capability.