Fixed home command to use properly scoped variable