Add curl check and modify package.json