Removed some unused code having to do with permissions of symlinks.