Fix build.sh and check if redirected or not for color output
Move build.sh from setup.sh to geodiag ‘warmup’ subcommand

In some Linux distribution, the echo command in setup.sh sourced by
.bashrc will cause problem with ‘scp’ command, so move those echo command
into geodiag subcommand, which will be invoked by user manually.