Fix #23563, #17894, #23375, #20107 and #12365 variables not being initialized to real path in merged-usr environments.