Added test case to reproduce the scenario
Fixing issue
Merge pull request #1322 from lucasallan/dir-resolves-symlinks

Dir resolves symlinks