fixed config script, correctly check versions