Ensure require-final-newline is set even in old Emacsen.

In Emacsen < 24.1, there's no prog-mode to set it.