used a more stable way to create attempt id across hadoop versions