create local env dir before writing into it