Fix retrieval of directory metadata.
Upgrade package dependencies.