When no shell is detected, set `RCSHELL` variable to point to /dev/null. This avoid weird error messages.