fixes scraffolding: menu=path

The generator is generating "menu" instead of "path".
I commit this fix here and not on the generator, because it seems to me that `menu` is much clear than `path`, but we need to keep the support for old versions.