Fix vim modelines handling

Improve determineVimFileType: do not require "set", search backwards

 - "set " or "se " is not required with the (newer) modelines
 - prefer later entries in case of multiple settings, by using a new `strrstr` function

Please review especially the `strrstr` function, which is derived from the `strstr` function.