Adding support for directories to render subcommand.