feat(dist): different cwd based on config.type