I really dislike this. We should find a way to do it properly instead of changing dir within production code.