fix for working directory init and set