Do you have the EEPROM settings turned on? It is very possible you have bad Z-Offset numbers stored in the EEPROM. If so, that will over ride whatever number you compile in your Configuration.h...