retry directory removal to work around Windows' inability to remove directories when you ask