Generalize config for internal hashdist builds

Take 2 after rollback of #169