1c39180518
was colliding with dirname() in libc.a and causing a Sig 10/bus error. Just change dirname to savedir and be done with it.