Fix for https://github.com/yui/yuidoc/issues/178

Better symlink handling.