revised for generating .scm* files in the srctree