Implemented preserving directory when creating enw terminal