Really ugly way to get symlink-checking to work.