fix cyclus run script to be more robust