check before creating symlinks