Cleanup extra variables in install hook