partial undo of a4a4696: BUILDPACK_URL must not be blacklisted
parse optional '.git' in BUILDPACK_URL when determining branch