Improved support for dependency directories