check directory is writeable after checking it exists

```
sculpin cache:clear

  [RuntimeException]                                                                        
  Unable to write in the "/path/to/project/app/cache/dev" directory  

cache:clear
```

If you create the directory ```app/cache/dev``` then it'll run without error, and remove the directory and cause the error on the next run.