Opps good shout.

Found a slightly cleaner way of doing this using `io/console` which is part of the stdlib of ruby. Only problem is that it introduces a dependency that ruby needs to be >= 1.9.3

Thoughts : a5faf28