added a dirs() method as well as set a default path for cd()