Fixed mkdir command to use -pv and removed re-declaration variable from memory setting: USE_MEM