Use environment variable for Matlab directory.