make symlinks work with dirs, too