Patches provided by Joel Baker in PR 22309, verified by myself.
.Cd with config file. XXX: kbd(4)'s Cd is still wrong, some acorn32 guy please fix.