Properly pass in config_dir / debug flags to resolvers when loaded.

Also update specs to test for this.