Add try/catch to version parsing