If you don’t know all the right places to look for the logon and logoff scripts when updating them then you will no doubt mess up and keep an old copy.
The “right” way to load it is by using it through a Group Policy, not the section under your user’s AD Profile settings. Just check the GPO for the User Configuration–>Scripts–>Logon
Right-click Properties then press “Show Files” and note the location. Edit that file to get the changes you want.