Added check for ttyO*, if doesn't exist, create it, if exist, just use it
added search file