change case for pre/fol words
change mkdir for windows compatibility