Refine NERDtree behavior.