Rolling back the -e, should be replaced with proper RC handling for curl