Print script output in addition to logging.

see https://stackoverflow.com/questions/3173131/redirect-copy-of-stdout-to-log-file-from-within-bash-script-itself
Fixed accidental output redirection.
Print script output in addition to logging.

same as f4ef3dcb7d7dda2fba5fb796909761106d42dcc0
Merge pull request #3 from bmorg/bash_enhancements

Build scripts: bugfix & output redirection