Moved the code which generates the optional separate outputs into the if statement so it only runs when required. Also simplified the code. it now uses the fileparts builtin command.
Moved the code which generates the optional separate outputs into the if statement so it only runs when required. Also simplified the code. it now uses the fileparts builtin command.

alunmorgan/GdfidL-framework,alunmorgan/GdfidL-framework