Change dir function name to current_dir and set TERM appropriately