Changed YARN_APP_CONTAINER_LOG_DIR to a default value when the property YARN_APP_CONTAINER_LOG_DIR is not available (tipically with CDHv4)
Selected only Yarn CDHv4 and all CDHv5