Fix version detection to detect all the 2.x and 3.x IPython versions.

FIxes #38... missing buttons in IPython 2.3.0.
Tested on IPython 2.3.0 and also tested in current Jupyter master (e9c0f45) and all the buttons are working as expected.