Revert "Changed permissions for cache directories/files"

This reverts commit df49a1a656c60abbeab93aa7c3e233d594f2b0fe.

fixes #2