Don't update weight if cd bookmark doesn't change directory or goes home
cdb: fix regex