corrected a problem with the os detection
Made the data load script platform independant