remove forward slash in detected repo if necessary