Added a safer way to redirect git output
Merge pull request #3001 from wet-boew/fix-travis-output

Added a safer way to redirect git output
Build: removed flatten: true when building demos
Build: demo fixes since no longer flattened