build.sh: fix empty inherit env cause error bug