printf instead of echo for newlines; ungreedy replacement for both glance-api and glance-registry configuration