Update install directories correctly when target exists