complete implementation of cond-expand for config.scm dependencies