rake: fix api folder copy