modified to exclude emacs backup files