Improve archive type checking.