Space at EOF in modules.txt was causing all the problems.