modelbuilder: Remove duplicates from modules list

Fix a mistake introduced by 1a3536b6 (blame me)
Also fix issues #153, #157, #223 and #224

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>