Add the functions for running home dir packaging/extraction, and fix a index offset when parsing the resilvered message.