Fix bug - when looking at the modules extension directory, ignore subdirectories