Fixes a bug where there was a missing home_dir variable.