Fixed -debug flag always active in builds
Allow output name for reports to be specified