Generalize config for internal hashdist builds

This is needed to build Proteus correctly from within a hashdist build.