unlink won't delete read-only files either (at least on windows it 
won't), so a File.chmod( 0644, fname) will be necessary before the 
unlink call.