test the contents of the generated module and script
delay file generation until prereqs are available: restores -also section

(and closes RT#76496)
Merge pull request #2 from karenetheridge/topic/file_fromcode

delay file generation until prereqs are available: restores -also section