darwin/dirs: fix plugin lookup with the NPAPI plugin