make autoload regexp match emacs'

The previous regex was missing grouping and matched elc files as well,
better to use the same thing that the builtin emacs autoload stuff uses.