fixed broken file-modes on Windows