Fixed error in the file "modules.txt" where information about custom modules were not written into it correctly.