Use Git process instead of raw file reading

Fix #9 Cannot read git config when not at top level of working directory
Update #7 Use `git remote` to get repo