If only the screensave hack is installed, we have a write-up indexed on how to remove it using the command line (such as you have over ssh).
Removing the ssh hack is a bit more difficult.
If you have problems, I would say don't worry about it, we haven't heard of anyone having their warranty exchange refused for making changes in the file system (at least not that I have seen on this forum).
"Hack is just a four letter word." - - With apologies to B. Dylan