Fix my personal nerdtree functions to work with the new API.