deis/deis — pull request #2752 by carmstrong (2014-12-15 22:37:38+00:00)
Title: fix(deisctl): properly resolve ~ in path

While `$HOME` is resolved properly in paths, `~` is not
and requires special handling.

I tested this with the following, on both bash and zsh:
```console
$ deisctl config platform set sshPrivateKey=$HOME/.ssh/deis
$ deisctl config platform set sshPrivateKey=~/.ssh/deis
$ deisctl config platform set sshPrivateKey=/Users/carmstrong/.ssh/deis
$ DEISCTL_UNITS=/Users/carmstrong/gocode/src/github.com/deis/deis/deisctl/units deisctl refresh-units
$ DEISCTL_UNITS=$HOME/gocode/src/github.com/deis/deis/deisctl/units deisctl refresh-units
$ DEISCTL_UNITS=~/gocode/src/github.com/deis/deis/deisctl/units deisctl refresh-units
```

fixes #2677