add directory management to batch_rnc2rng.sh