Fixed extension discover method to try and find only directories as extensions.