Presumably this conditional is because the standard gemfile location isn't available from China.  Isn't there a way to test that directly?