oops, this needs to be a string now
Be more explicit about the error received
Fix envdir handling