Shouldn't we use the $_loadfile_name here instead of the ${mod}.load instead as that is the file we are taking action against?