550 check script before running

I think this should fix #550 finally, as well as help make the flow easier to follow overall.