Fix loading from cache in ec2.py inventory plugin.