Trim "/..." for cd

Fixes issue #16