Fix generated git URLs when path is empty
They are currently generated as https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/v3.14.0/None
They are currently generated as https://github.com/terraform-aws-modules/terraform-aws-vpc/tree/v3.14.0/None