installed vim-projectroot and removed my own code for finding it
more reliable buffer deletion