Fixes related to root path:
* root path comes from project. if not avalible, assume FULL_INDEX_PAT
Changes in source classes:
* git: checkout to selected branch rather than master branch.
  it's important, since we read files from disk later on.
  if we were indexing something other than master branch, the
  desired file might not have been on the disk.