fix adding files bug on Windows