linux: workaround for missing patches link

git may create a regular file instead of the required link.  This patch
removes the file and creates the link early in the Makefile processing.
remove shadow variables