It works, I just need to make the changed workdir known to the src_prepare phase now, thanks for all the help!