Added script for fixing scratchbox rootfs links and make it works in cross environment