fix generate bash script (from dividing files)