special handling hosts and opts files

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>