Correct initial dir when loading env