Added test for existence of remote before doing git fetch