Run realpath on --device arguments.

This way arguments like /dev/cdrom (a symlink), /mnt/ (trailing slash),
or ./../path/../..////../media/../srv/install (madness) will work as
expected.