Add/remove trailing linefeeds when dealing with a TTY.
Re-set integration test to do all tests.
Bump version to 1.0.2final.