Adding trap command so ctrl-c doesn't leave dirty version file.

Change-Id: Ia53abecab275bb7c08e97778bf7206b5643d43a3
JIRA: REL-1031