update package detection for emacs 24.4