Log the file which was used to determine the perl version

This makes it easier to track why a specific version was chosen.