Modified behaviour to replace symlinks