Simplify npmi/gemi scripts with a simpler test