make sure home_dir variable is correctly populated