Script segmentation fault check