Updated the sync process to correctly generate and save a new platform hash when required, instead of this happening in the install/upgrade process as previously happened. #229