add condition to find matlab executable