Fix for possible issue on redhat-alikes, where ensure => latest was failing

This issue is hard to track down, but this appears to fix it without breaking
anything else.