You don't need to alter the Z steps/mm, you can use M579.