Fix setup script to actually write the modified init files