you still need `realpath`, instead of `rtrim`.