BUG: distutils: fix bugs in BLAS ABI detection