<broker basic-auth> Add more apache 2.4/2.2 sensitivity

Added version-dependent logic to env-var based auth config for broker
basic-auth