fix spec tests and tagged version of apache
Remove non needed case statement and fix red hat tests