fix badly formatted script file