Fix scipy version check