SCALAPACK detection improvements