Fix ag options
Remove whitespaces on file end only in prog-mode buffers