pass cwd explicitly