Fix bugs for EMR modules
Fix bug for url_to_s3