clean up modules.list by removing unused modules