use \\' instead of $ to match the end of filenames

apparently \\' means "end of the string" and $ means "end of line".
since it's possible to have a newline in a filename (?!),
auto-mode-alist should use the former.