Fix bug related to dep in a rubygem context.

So the release of 1.0.5 was supposed to make dep work as
a single script, mainly to simplify our workflow.

That introduced a couple of bugs related to rubygems
wrapping the script as a bin script.
Release 1.0.6: Fix for rubygems.