set env_dir variable