Check for reparse points (links / junctions) that point to directories

This change allows reparse points that point to directories to be handled in RStudio on Windows.
Let's implement this for both platforms and just have the other platforms return false (that way we won't need the #ifdef at the call site).