expand plugin rootdir if possible