Add autoload cookies to hooks

This patch fixes that add-hooks are not copied to ruby-end-autoloads.el when installed with package.el.