Move java home check after process args.