Automate relocation of shared library paths for reference filesystem taken from live rootfs that is not suitable for compilation