rcmd: ignore local/lib. Can be better