fix trailing slash on symlink problem