FIX: debug builder not working.
FIX: eliminated multiple redundant output file appends.