Why not let `getNodeModulePaths` return just files so so you won't have to do it.