Only enable the 'local modification' check for Release builds.

This allows debug 'Disk Image' builds to proceed if there are local modifications.

Issue: PLCR-508