fixed error with storage of work dir