Fix build script child process env