Use realpath instead of abspath to follow symlinks