Provide the full path in write error messages
Switch to the temporary directory for reconstructions
Fully resolve srcdir and target

Also switches to srcdir before processing starts, ensures proper
lockfile placement in all cases
Improved the chdir error message for runPackageTrigger
Ensure the path to the temporary $dir is absolute
Added a ckey class method for resolvers to ensure unique keys
Ensure the ckey always contains template info
Updated the dependency list