This fixes the script up slightly; still having issues with target and source.
Fixed the linking so it links/replaces all files appropriately.