make the horror if statement easier to read
make the horror if statement easier to read

coderefinery/autocmake,miroi/autocmake,scisoft/autocmake,coderefinery/autocmake,scisoft/autocmake,robertodr/autocmake,robertodr/autocmake,miroi/autocmake