bug in isNpmModule method