Properly compare directories when they contain symbolic links

When cd-ing a directory and checking if a present .rvmrc is from a project or corresponding to a .rvmrc profile file, we should not only compare by name but also check if they are links pointing to the same place.