Implement cd and list correctly