Move home variable into readline ifdef

Fixes an unused variable warning when readline isn't enabled.