Make sure the .netrc is usable

Signed-off-by: Bao Haojun <haojun.bhj@alibaba-inc.com>