Fix bug for case when map and reduce expressions are too big to be passed as environment variables