Tidy scripts as production errors