fixed bugs in ls and cd