Build scripts: bugfix & output redirection

This pull request:
 * Fixes a bug with bash interpreting version requirement strings (">=") as output redirection.
 * Changes the script behavior so that output is printed to console in addition to redirecting it to a log file.