Create cache directory

This pull request adds the creation of cache directory.