Set platform.mode everytime before adding files to be watched