Fix executable log not flushing.

Set STDOUT to flush immediately for executable; the log lines are short
and sweet.
Bump version to v0.3.1.
Merge branch 'release/v0.3.1'