fixed module directory fallback