xcode_module: refactoring, added checking of current version