Add retry to external command runs