Fix get mod ini file

It's not really clean
Does anybody know a better way ?