fixing up the blas detectino in linalg