Fix bug and improve code in 404 symlink creation.

See websharks/quick-cache#242