take matlabhome from env and remove extra newline