Helpmodules and buildmodules functions better
Separated out getmoduletype output and module repo into separate lists.