Added a fix for old now unversioned files with readonly set.