Anchor auto-mode-alist patterns to end-of-line

Re. https://github.com/milkypostman/melpa/pull/1813