Fix cross-device symlinking bug.