Attached is a patch that I believe address both the ~/%backup%~ and ~/.emacs.d/ security issues. It works well for me on Linux. Mark