Re-structure the generate_fogfile.sh file