Add cwd option for flexible configuration