[dist] fix ownership of directories