fixed an issue with symlink removal