fix symlinks with trailing slash