Adding support to run bundle command 3 times if failure. TODO: FIX TESTS