fixed bug when using .git url as basename