Fixed name for local repos

If the addes folder is named only .git than the repo name will be empty.
If so this fetches the name of the parent folder and uses that instead.