Set uid / gid when writing files