Call setWriteable on file before trying to delete it. Relates to [#460]
Merge pull request #1036 from juggler/set-writeable

Call setWriteable on file before trying to delete it