Fix is_writable check for templates/cache

`templates/cache/` has been reported as not-writable when `templates/cache/` was writable but `templates/` wasn't.