--version prints what readline lib gitsh is using
Open tempfile in write mode

Fixes #148
Run test suite on Travis using ruby 2.1.1