BMK-122 Update main.sh, check failures of test singularity and remove images created by singularity Closes BMK-122 See merge request !174