Core/Tools: Fix logic fail for mmaps generator (thx armano2)