correct cache directory mode

https://bugzilla.novell.com/show_bug.cgi?id=858194