fix sw glob and remove some emacs junk