Support bare repo directories that do not end with .git

Signed-off-by: Konrad Scherer <Konrad.Scherer@windriver.com>