[pj-plugin] avoid using basename. migth be (a lot?) faster