Fix generator listing

Refactor the way package.json lookup (for update notification) is done