Fixes dynamic partitioning support for lower Hadoop versions