The Abhyankar-Jung theorem revisited