cd+ls: add cases for ~ and /