Add port scanning in SparkSubmit