Fix get repo url bug when package.json is not json type