Corrects rootFolder & samplesFolder paths