fix dir location to create (#2069)