cd enhancement with dirs\'-based history