fix logic in menugadgetbundle
package manager indicate if there is a JSON error in package.json
getPath use cache