Refactored passing of the "all" option in LsCommand
Fixed cd when executed in the root directory