Fix assumption on type of .dependencies

I have no idea what happened, but at least for strong-deploy, `deps` is
the string "*", so the `if('dependencies' in deps)` is exploding. I
added guards to check if deps is an object to all the conditionals, and
all seems to be well.