fix flag eval for change_dir