Make 'build' commands work with non-interactive shells.

Tested that both './build/release.sh < /dev/null' and './build/shell.sh' work.