handle race condition on netrc touch to avoid truncation