Adding explicit flush.
Typo in exec argument decoding.
Fixes #5.