Tomohiro/bundlizer — pull request #3 by tjmcewan (2012-11-09 02:19:14+00:00)
Title: path detection failure fix (dirname: illegal option -- /)

I was getting:
> dirname: illegal option -- /
> usage: dirname path

full credit to: http://stackoverflow.com/a/246128/320438

Cheers,
Tim