Changed build folder detection to match new spec.