Remove symlinks from path without using File#realdirpath

That method is not present in Ruby 1.8
Merge pull request #1 from porras/repo_add

Remove symlinks from path without using File#realdirpath