Detect remote instead of using origin