improve webapi.vim: check directory every time