Change recent fix for T37864, now only check if the file is readonly

Other error cases are already handled elsewhere
Merge branch 'master' of http://git.blender.org/blender