Better implementation of the lib64 directory fix for RHEL based systems