add env_dir to compile line