Don't require a deps.json for self-upgrade or create

* Fixes #14
Rework switch for readability
Merge pull request #15 from vube/feature-issue-14

Don't require a deps.json for self-upgrade or create