bash: update cd_func to make sense