moved check_gitignore to init_config