Dirs only need to be writable, when we are performing a write.

Ref: http://www.doctrine-project.org/jira/browse/DCOM-240
Merge pull request #30 from catchamonkey/patch-1

[DCOM-240] Dirs only need to be writable, when we are performing a write.