Having looked more closely at what the script is trying to do and the artifacts being produced, have another go at the omod_file directory