Issue #2589967 by alexpott, dawehner, damiankloip, valthebald: Rebuild routes immediately when modules are installed (cherry picked from commit a97f7b7e)