change file and dir modes

Change-Id: I1b1d81564324840f28acfc43c7fc09d4186464f0