gitweb/lib - Simple output capture by redirecting STDOUT