data/common: configure Glance API policy only if env is set