I think I'd be satisfied if iDont just added the workaround to the post-install script. It looks like you only need to check to see if there's a trap exit line in /home/user/.profile and if not, drop in Code: trap exit SIGHUP That will keep the save-on-exit patch and workaround the missing save-on-SIGHUP code.
trap exit SIGHUP