Move fixup-libgfortran to `contrib/`, enable it for Linux as well as OSX
Modify fixup-libgfortran so it works on Linux as well

Conflicts:
	contrib/fixup-libgfortran.sh
Only run stringreplace if we need to.

Closes #8482
Remove debugging echo