No, it's more complex than that actually... `distutils.sysconfig` only gives one or the other (`lib` or `lib64`), but apparently in some cases `lib` is used even though `distutils.sysconfig` returns a `lib64` path. Hardcoding somewhere probably, so we really need to consider both.
This popped up during the EasyBuild hackathon in Cyprus when testing `eb` on JUROPA.