--list: respect the --realpath flag

If --realpath was specified, the database listing is being printed using
absolute paths.