Fix bug that was preventing options.cwd from being applied correctly