improve install.sh; avoid json error