I think that the current behavior of uninstall is to leave the @temp folder if it has been modified.  The @temp folder should probably not be deleted if it exists.

Off hand I can not think of the purpose of doing anything with the @temp folder.
Presumable nothing should be using it after your changes.  What is the intent here?

Also, please verify that the LN build will be consistent with your changes in OSS.  LN also uses the @temp directory.