Cache dir creation also with file mod call

Cache directory should be created with `chmod()` call.

Without `chmod()` it can cause problems and you will get into situation, when is very hard do delete `cache` directory and its contents.

Thanks!