[#858] use bash subshell for environment variable, fix centOS5 build