numpy, scipy: fix a bug in the LAPACK variable

Since we have to redefine it for the build system, we have to use the original
value before we redefine it.