Fix an issue with lowercase privileges.

This fixes the case where a user passes in lowercase privileges and
we incorrectly assume this means a change and reapply them.