Make precommit version check only look at plugins that have changed

Bug 1215662

Change-Id: I704e12f8896544a95f51044d5fec38b702b5500e