Set correct file/dir permissions