Refactor for new directory extension interface.
Prepare v0.3.0