KeepAsHost - operand was not supported by Bourne shell, replace by a working fonction