lsf/pim: fix uninitialized variable env_dir