mkdir -p for target directories. Recursively remove the whole generated
dir for the generator tests