Fix #169: fix resolve of external plugins