about .git folders what happens if users use the download function on github and not git checkout ? are .git folders included as well then ? I’m guessing that they are not in the repo so it will only display the modules if users used git to get emoncms and their (optional) modules and not when using the download link like https://github.com/emoncms/emoncms/archive/master.zip
edit: just checked it does not contain them. So in my opinion it should display all folders and not check on .git folders to be compatible with the download function …
about bold: you could create a (hardcoded) list of core modules or optional modules and depending on the list verify the directory name with the one for the hardcoded values and display the optional ones (graph, dashboard etc) in bold. Or you can do it the otherway around and keep a list of core modules and display all others in bold
another edit: What about using color codes ? like
green = emoncms core modules (…)
blue = emonpi core or related modules (…)
orange = optional emoncms modules (graph, dashboard)
or if using color codes and displaying all folders use green to display as installed and red or orange as not installed. italic can also be used for this if wanting to use color codes as above. this would only work though if you keep a full list hardcoded in the code to compare against