Fixed YARN and MapReduce pid directory creation