set MAPRED_DIR for CDH versions