* Repository name is extracted from URL and used as WORKDIR.
It leads to error when the repository URL is provided with ".git"
"https://github.com/airshipit/airshipctl.git"
* Remove the ".git suffix when present in repository URL
Closes: #653
Change-Id: If154873f4126cedd85aa7f5deac13e17726a732c