Fixed another issue with pipeline cwd and initialize cwd now lazily