Update --cd argument functionality.