Replace dots with dashes in dirnames for `tn` alias.