added ability for attempts on run_cmd, moved script downloads to attempts