fix local_csv output to specified dir