Check isatty
Merge pull request #15 from nslater/check-isatty

Check isatty before calling readline