Fix version checking in setup.py (closes #366)

Compatibility with numpy 1.10.