Update CSV export script to use `os.path.join`