fix freeze on tramp
calculation of tramp-prefix is moved to init phase