proper check for mods dir

prevents crash if the mods dir is missing.