save file before run if already exists

fix for issue #99 to save changes before script run on existing files. Since selection based runs from the buffer no changes there. If the file is unsaved the user will still have to save initially or do a selection based run with the appropriate grammar.