Made output of intermediate files go into module directory. Previously they went who knows where.