Assuming you can easily get a version number from your source, have your script take an option that can get it to dump it's version number. GetOpt::Long is exceptionally good for this. Depending on the specifics, you may be able to get back down to two files.