Refactored delete-var/print-var/cd builtins