remove extra dot if tomcat version > 7