Use localhost if no network connectivity.
Expand file parameter such as `.'.
Remove links reliably.
Do not follow if the link already exists.