Making sure resolved path in not empty

Previously there was a bug that made `go` to `cd` to `'/'` (root) when
the shortcut name was invalid.