cache starred: only try to chmod cache directory if it is not writable
Merge remote-tracking branch 'upstream/master'