Fixed permissions issues in the CSS cache file generation.
Fixed variable name.
Merge pull request #1739 from ahukkanen/permissions_fix

Fixed permissions issues in the CSS cache file generation