comprehend buildpack urls with treeish components

Allows you to use:

```
BUILDPACK_URL=http://github.com/x/y.git#branch-or-commit-ref
```