Fixed generation of _mod files
It is the same merge request as previous one. I've fixed all issues with manually changed _mod files and run genmod.sh
. Now they all are truly autogenerated and it is possible to remove them from repository in the future.