Improve Project url validation

Previously urls like `https://github.com/foo/` and `https://github.com//` incorrectly passed the validation, resulting in confusion like #682, this fixes it.