Boundary can be on separate line
Try for loop to test for existence of patches
fix script