fix error on empty Plugin dir