Modified file insertion macro to work when this source is compiled from another project.  Fixed some permissions issues with batch files.