cd.sh: Fix logic if settings == Settings