Set right env.dir properties value