Why not handle this with puppet_modules#index?