Added check for undef root_home