Add createFromDirectory method for createing extension object
refactoring extension manager