#48: use dirname if git has incorrect repo url.
Merge pull request #5 from miry/48-without-ext

Added ability to get project name from the git remote url without e...