Fixed env var usage in cmake file