Added support for the MLOGDIR environment variable in the log4j properties file.