Change hostname script fixes