Properly set environment variable