fixed EMR script to follow CLI opt changes