Fixed logic error in updating robots.txt