Fix abspath -> realpath in utils.data to avoid issues with symlinks

Should fix an issue reported by @taldcroft in #709 which occurs if the Python package is located inside a symlink at some level.