I have no ideas why path.c is so complex. Any? In the attachment rewritten version. It has tested with qemu-arm. With old version I had the problem. It hangs due loop of symlinks. :(