Fix error when cwd link is missing