shell: Correctly link to encrypted block devices.

Fixes #1262.