sanatize directories included in mod file