Fixing cache_path: taking into account the three forms of ldd output lines.