Fix version processing and re ordered module import after log setup