Fixed crash when module has no maps directory