Fixed rcd to only look at directories.