Resolve symlinks with realpath instead of readlink

gh-31