configurable dependency directories

I know it is a hack, but we need this feature.