Fix bug in scipy version check