Added '--installed' option to `deps` command.

When deps command is passed this option, it will only show the dependencies
for the installed forumas. This option overrides the '--all' option.

Closes #18276.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>