Ensuring rbenv root and cwd are permissions-friendly