The workaround of manually linking /lib64 -> /usr/lib64 inside the container that is needed on s390 is also required on ppc64 because here the dynamic linker is set to /lib64/ld64.so.2 and the /lib64 link is not created.
dir_fd
os.scandir()