fixing env_dir