Only search for cmaps.mas in the current mod directory
Added a first test case to test .gen fixing
Fixed incorrect return type