Fix bug with silent incorrect exit in init
Make init add and commit the gitignore file