[RDY] Fixes to shell.c, systemlist and functional tests

Fixes extracted from #1335 that are not directly related to that PR