Fix compatibility Mac Os X and Linux terminal