use command -v as a replacement to which
remove rsenv