fixed json insertion of new files, was not working in windows