Preserve ETC_PREFIX and SHARE_PREFIX if already set.