rc.shutdown :
Code block about subdirectory cleaned a bit by
using one test with -a instead of two test combined by &&
and added/removed double quotes where I think it is reasonable.