Dir resolves symlinks

Fixing #1036