Fix ENV var check in http basic auth