Make sure CMD doesn't overwrite itself

This fixes some issues when CMD is installed both on the repo and on
the local wiki, and repo data is overwritten with inferior local data.

Change-Id: I9d5ad481cc04c1d43d1b512586c0284094d00455