pkgix: chenv: Print error if invalid directory

Previously chenv with an invalid directory would show a error-trace,
which may not be very useful for a user. Show the reason why it failed.

Signed-off-by: Marco Elver <me@marcoelver.com>