Fix mirb crash 

This fixes an mirb crash when it is compiled with readline. Hitting ctrl-d wouldn't exit early enough.