added option to remove read only flags in windows. fixes #317