Rpmcache fixes for 777

Improvement of the RHEL downloading.