reformat NERDtree autoclose function