Fix the mkdir for moduledir