MFC r267493:

Fix two issues:

 - Check for rc.d directory's existence before traversing
   it;
 - Don't output * when rc.d directory is empty.

PR:		bin/190665
Submitted by:	Oleg Ginzburg <olevole olevole ru> (with changes)
MFC r267372-267374: fix various misimplementation of instructions.

Submitted by:	Wolf Ramovsky <wolf.ramovsky gmail.com>