Fixed incorrect path in setup for git and moved function up in core.py to fix minor bug