added support for specifying build configuration for depdendencies (with dependency:configuration)
replaced exits with exceptions