correct extraction of env variable for dburl