Issue #2071629 by blackdog: #after_build wrongly added, overwrites other modules.