check-system.sh is_npm_global_package_installed function corrected to detect missing global packages