Make sed expressions safe to run multiple times

Also, make them ignore commented lines.
Merge pull request #96 from ceph/wip-fix-sudoers

Make sed expressions safe to run multiple times