Updated to exclude emacs swap files and OSX specific files