Check linked files against the correct place

Also, add a diff of the files and 'set -e'