Fix RANCID directory modes

Change-Id: I186a414344dbf592d871649e9763a358ad9f2bef