If `BP_DEBUG` environment variable is set, it'll be passed through to
the context of the build pack as it's run.  This allows for easier
debugging of the build pack as you can see the full debug output.
Modified assertion output to include full contents when it fails.
Fixed bug in the way that extension names were parsed from the index file.  The previous method did not like having additional '-' characters in the URL.