Moved apache version parsing *after* installation of apache packages; fixed stage in travis yml