Fixed module autostart lookup - checking for directory