Fix handling of paths with multuple mounts — for example rootfs first mount for /