Fix permission change of existing directories at core updates.