install/sd-vconsole: move functions inside the subshell to avoid affecting subsequent build hooks
The functions are specific to the sd-vconsole
hook and since there
already is a subshell there, let's place the functions inside it to
prevent them being available in the global scope.