idea of cwd switching
cwd spec ready
cwd() amended and documented