Write the packagename into the safe region.

Before this change, it was writing the application name which is not
what we want.

Change-Id: Iaf12c08a39190318f2c737f8eab0cd17636273b3