Fix GradleSourceUtil.removeManagedDependency