fixed more issues with version number check