Got the existing code to work. Now creates a merged uncompressed FastQ file..
Added code to do environment module loading work. Now seems to run cutadapt ok.