Issue 4912: Flex role_path configuration based on number of paths configured

Fixes #4912