Let the gen-dist target work in cwds other than current