[core] Fix install_generator, so route is appended only once