use basename .csv $CSV | .... instead