make sure plugin dirs are overwritten properly