makerules.py: fix the problem when checking archive file