Fixed a pretty big error

the cat << EOF file writes weren’t working because they were tabbed.