Fix for #182, which requires we delete a read-only file before overwriti...

...ng it