Fix hooks in app and module generators