_test_flac with $NF, not $1.
rename NF to OUTFILE.
add some bits and pieces.
rename $D to $DIR.
continue if one of the files is invalid.
don't run if file has already been converted.