Handle existing symlinks in create-symlinks

It turns out that if there is a symlink pointing to a non-existing target, fs.exists return false, we need to explicitly check for a symlink.